Barcode Xpress works with 1-bit black and white images, 8-bit grayscale images, and 24-bit color images. To convert other image formats use the ImagXpress ColorDepth method or other methods with the included ImagXpress component. If you use ImageGear, use the ConvertColorSpace method.
C++ Example - Minimum C++ code to load an image using Accusoft.ImagXpress13.ActiveX for a 64-bit environment |
Copy Code
|
---|---|
//load a 1BPP, black and white image into the ImagXpress control m_pImagXpress->FileName = “C:\\testbarcodeimage.tif”; // Copy the hDib __int64 hDib64 = m_pImagXpress->CopyDIB64(); // Analyze the barcode m_pBarcodeXpress->AnalyzehDib64(hDib64); // Free the hDib GlobalFree(hDib64); |
See the Recognize a Barcode topic for information on recognition.
See the Overview topic for code examples on acquiring barcodes.